package cn.danger.com.db;

import java.util.List;

import cn.danger.com.model.entity.Schedule;

/**
 * Created by 俊 on 2017/1/2.
 */
public interface ScheduleDao {

    int insert(Schedule schedule);

    void delete(int id);

    void update(Schedule schedule);

    Schedule getSchedule(int id);

    Schedule getWillArriveSchedule(String username);

    List<Integer> getMonthSchedule(String username, String year, String month);

    List<Schedule> getTodaySchedule(String username);

    List<Schedule> getDaySchedule(String username, String day);

    List<Schedule> getSchedules(String username);

}
